using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.OleDb;
namespace prDe_Tai.DuLieu
{
    class LayDuLieuTheoTenPhanMem
    {
        public DataSet laydulieutheotenphanmemtrongbang_DanhSachPhanMem(string tenphanmem)
        {
            OleDbCommand com = new OleDbCommand();
            com.CommandType = CommandType.Text;
            com.CommandText = "select * from DanhSachPhanMem where tenphanmem=@tenphanmem";
            com.Parameters.Add("@tenphanmem", OleDbType.BSTR).Value = tenphanmem;
            LayDuLieu laydulieu = new LayDuLieu();
            DataSet ds = laydulieu.laydulieukhicothamsotrongbang_DanhSachPhanMem(com);
            return ds;
        }
        public DataSet laydulieutheotenphanmemtrongbang_DanhSachBoSuuTap(string tenphanmem)
        {
            OleDbCommand com = new OleDbCommand();
            com.CommandType = CommandType.Text;
            com.CommandText = "select * from DanhSachBoSuuTap where tenphanmem=@tenphanmem";
            com.Parameters.Add("@tenphanmem", OleDbType.BSTR).Value = tenphanmem;
            LayDuLieu laydulieu = new LayDuLieu();
            DataSet ds = laydulieu.laydulieukhicothamsotrongbang_DanhSachBoSuuTap(com);
            return ds;
        }
    }
}
